ga.view.config
Class ViewSettings

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<GASettings>
              extended by ga.view.config.ViewSettings
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<GASettings>, java.util.Collection<GASettings>, java.util.List<GASettings>, java.util.RandomAccess

public class ViewSettings
extends java.util.ArrayList<GASettings>

This is an extended ArrayList that parses and holds all GASettings.

Since:
12.08.2012
Author:
Stephan Dreyer
See Also:
Serialized Form

Field Summary
private static java.util.logging.Logger LOGGER
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
ViewSettings()
          Instantiates a new view settings.
ViewSettings(org.jdom.Element e)
          Instantiates a new view settings and parses the GASettings from xml.
 
Method Summary
static ViewSettings buildFromXml(java.io.File file)
          Builds the viewsettings from xml.
static ViewSettings buildFromXml(java.io.InputStream is)
          Builds the from xml.
static ViewSettings buildFromXml(java.lang.String filename)
          Builds the viewsettings from xml.
 GASettings get(java.lang.String name)
          Gets a GASettings instance by its name.
static void main(java.lang.String[] args)
          The main method for testing.
private  void parse(org.jdom.Element e)
          Parses the xml elements and creates all objects.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

LOGGER

private static final java.util.logging.Logger LOGGER
Constructor Detail

ViewSettings

public ViewSettings()
Instantiates a new view settings.

Since:
12.08.2012

ViewSettings

public ViewSettings(org.jdom.Element e)
Instantiates a new view settings and parses the GASettings from xml.

Parameters:
e - The xml Element
Since:
12.08.2012
Method Detail

buildFromXml

public static ViewSettings buildFromXml(java.lang.String filename)
Builds the viewsettings from xml.

Parameters:
filename - the filename to load
Returns:
the view settings
Since:
12.08.2012

buildFromXml

public static ViewSettings buildFromXml(java.io.File file)
Builds the viewsettings from xml.

Parameters:
file - the file to load
Returns:
the view settings
Since:
12.08.2012

buildFromXml

public static ViewSettings buildFromXml(java.io.InputStream is)
Builds the from xml.

Parameters:
is - the input stream to load
Returns:
the view settings
Since:
12.08.2012

parse

private void parse(org.jdom.Element e)
Parses the xml elements and creates all objects.

Parameters:
e - the xml Element.
Since:
12.08.2012

get

public GASettings get(java.lang.String name)
Gets a GASettings instance by its name.

Parameters:
name - Name of the settings.
Returns:
the gA settings
Since:
12.08.2012

main

public static void main(java.lang.String[] args)
The main method for testing.

Parameters:
args - the arguments
Since:
12.08.2012